/*
 * Author: Johan Kristins
 *	
 */

#pragma once

#ifndef GLWINDOW_H_INCLUDED
#define GLWINDOW_H_INCLUDED

#pragma comment(lib, "OpenGL32.lib") 
#pragma comment(lib, "GLu32.lib")

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <string>

//namespace NEON
//{
	class glWindow
	{
	public:
		glWindow();
		~glWindow();

		bool Init(const char *title, unsigned int x, unsigned int y, unsigned int width, unsigned int height);
		static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
		void Swap(){ SwapBuffers(hDC); }
		void Exit();
		bool MessagePump();

	protected:

	private:
		HDC hDC;
		HWND hWnd;
		HGLRC hWindowRC;
	};
//};


#endif
